<template>
  <div>
    <div class="plat_box">
      <div id="test">
        <input type="file" name="files" multiple="multiple" ref="fileMutiply" @change="filechange"/>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    filechange(e){
      let list = this.$refs.fileMutiply.files;
      console.log(list)
      const json = JSON.stringify(list[0])
      console.log(json) 
      const url = window.URL || window.webkitURL;
      var imgURL = url.createObjectURL(list[0]);
      alert(imgURL)
    }
  }
};
</script>

<style lang="less" scoped>
.plat_box {
  color: #fff;
}
</style>

